# -*- mode: python ; coding: utf-8 -*-

block_cipher = None

# 明确指定piexif模块的路径
piexif_path = 'd:\\1software\\miniconda\\envs\\exif_3dgs\\lib\\site-packages\\piexif'

a = Analysis(
    ['video_extractor.py'],
    pathex=[],
    binaries=[],
    datas=[
        # 添加piexif模块的数据文件
        (piexif_path, 'piexif'),
    ],
    hiddenimports=[
        'piexif',
        'cv2',
        'tqdm',
        'fractions',
        'datetime',
        'argparse',
        'pathlib',
        'logging',
        're',
    ],
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=[],
    win_no_prefer_redirects=False,
    win_private_assemblies=False,
    cipher=block_cipher,
    noarchive=False,
)

pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)

exe = EXE(
    pyz,
    a.scripts,
    [],
    exclude_binaries=True,
    name='SRT2EXIF_Custom',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
    console=True,
    disable_windowed_traceback=False,
    argv_emulation=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,
)

coll = COLLECT(
    exe,
    a.binaries,
    a.zipfiles,
    a.datas,
    strip=False,
    upx=True,
    upx_exclude=[],
    name='SRT2EXIF_Custom',
)
